package com.example.schedule.handle;

import com.example.schedule.handle.base.AbstractSchedule;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wangbin
 */
@Component
public class TestSchedule1 extends AbstractSchedule {

    @Override
    public void run() {
        String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        System.out.println("TestSchedule1 " + format);
    }
}
